 <?php
 include("../dbconnect.php");
 $persID = $_POST['persID'];
 $query = "select * from Email where PeId = $persID"
 $result = $db->query($query);
 $row = $result->fetch_assoc();
 $email = $row['EmailAdress'];
 
 $query2 = "select * from Person where PeId = $persID"
 $result2 = $db->query($query2);
 $row2 = $result2->fetch_assoc();
 $name = $row2['Name'];
 
 echo $email.";".$name;
 ?>